#include "baudratedialog.h"
#include "ui_baudratedialog.h"

BaudRateDialog::BaudRateDialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::BaudRateDialog)
{
    ui->setupUi(this);
    connect(this->ui->baudRateEdit, &QLineEdit::editingFinished, this, &BaudRateDialog::customBaudRateSetFunc);
}

BaudRateDialog::~BaudRateDialog()
{
    delete ui;
}

void BaudRateDialog::customBaudRateSetFunc()
{
    emit customBaudRateSet(this->ui->baudRateEdit->text().toInt());
}
